import { IAbility, IContext, IParam, IUIActionResult } from "@/core";
{{#if appPlugin.code2}}
    {{appPlugin.code2}}
{{/if}}
/**
 * {{appPlugin.name}}插件类
 *
 * @export
 * @class {{pascalCase appPlugin.pluginCode}}
 */
export default class {{pascalCase appPlugin.pluginCode}} {

{{#if appPlugin.code2}}
    {{appPlugin.code2}}
{{/if}}
    /**
     * @description 执行界面行为
     * @param {IContext} context
     * @param {IParam} viewParams
     * @param {IParam[]} data
     * @param {MouseEvent} event
     * @param {IAbility} ability
     * @return {*}  {Promise<IUIActionResult>}
     * @memberof {{pascalCase appPlugin.pluginCode}}
     */
    public async execute(context: IContext, viewParams: IParam, data: IParam[], event: MouseEvent, ability: IAbility): Promise<IUIActionResult> {
        {{#if appPlugin.code}}
        {{appPlugin.code}}
        {{else}}
        console.warn("未配置界面行为插件内容！");
        return { ok: false, data: [] };
        {{/if}}
    }

}

